# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-tweaks
pkgver=3.34.0
pkgrel=3
pkgdesc="GNOME3 tool to customize advanced options"
url="https://wiki.gnome.org/Apps/Tweaks"
arch="noarch !s390x !armv7 !mips !mips64" # mutter is missing
license="GPL-3.0-or-later CC0-1.0"
depends="gtk+3.0 dconf gnome-settings-daemon mutter libnotify py3-gobject3
	libhandy"
makedepends="meson gettext-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-tweaks/${pkgver%.*}/gnome-tweaks-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="1d2b21a31550d4b48afd02a9fcfb9844eacac7aa726ef624abcb40225af31da29b34e9032b3bb2943e5cb5f7553a6f931467d04bfbc2b026732e6bdcb86eb840  gnome-tweaks-3.34.0.tar.xz"
